<?php

/*
 +-----------------------------------------------------------------------+
 | SieveRules configuration file                                         |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+

*/

$sieverules_config = array();

// managesieve server address
$sieverules_config['managesieve_host'] = 'localhost';

// managesieve server port
$sieverules_config['managesieve_port'] = 2000;

// enable TLS for managesieve server connection
$sieverules_config['usetls'] = FALSE;

// folder delimiter - if your sieve system uses a different folder delimiter to
// your IMAP server set it here, otherwise leave as null to use IMAP delimiter
$sieverules_config['folder_delimiter'] = null;

// include the IMAP root in the folder path when creating the rules
$sieverules_config['include_imap_root'] = TRUE;

// ruleset name
$sieverules_config['ruleset_name'] = 'roundcube';

// allow multiple actions
$sieverules_config['multiple_actions'] = TRUE;

// allowed actions
$sieverules_config['allowed_actions'] = array(
											'fileinto' => TRUE,
											'vacation' => TRUE,
											'reject' => TRUE,
											'redirect' => TRUE,
 											'keep' => TRUE,
											'discard' => TRUE,
											'imapflags' => TRUE,
 											'notify' => TRUE,
 											'stop' => TRUE
											);

// headers listed as examples of "Other headers"
$sieverules_config['other_headers'] = array(
											'Reply-To', 'List-Id', 'MailingList', 'Mailing-List',
											'X-ML-Name', 'X-List', 'X-List-Name', 'X-Mailing-List',
											'Resent-From', 'Resent-To', 'X-Mailer', 'X-MailingList',
											'X-Spam-Status', 'X-Priority', 'Importance', 'X-MSMail-Priority',
											'Precedence', 'Return-Path', 'Received', 'Auto-Submitted',
											'X-Spam-Flag', 'X-Spam-Tests'
											);

// Predefined rules
// each rule should be in it own array
// 'name' => name of the rule, displayed in the rule type select box
// 'type' => one of: header, address, envelope, size
// 'header' => name of the header to test
// 'operator' => for type header, address, envelope one of:
//      contains, notcontains, is, notis, exists, notexists
//      for type size one of: over, under
// 'target' => value that the header is tested against
// Example:
// $sieverules_config['predefined_rules'] = array(
//  											array(
//  												'name' => 'Is Spam',
//  												'type' => 'header',
//  	   											'header' => 'X-Spam-Flag',
//   												'operator' => 'exists',
//  	  											'target' => ''),
//  											);

$sieverules_config['predefined_rules'] = array();
?>
